package com.rest.demo.io;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @author Administrator
 * @decription
 * @Date 2018-02-05 14:33
 */
public class WriteDemo {
    public static void main(String[] args) {
        Writer writer = null;
        try {
            writer = new FileWriter("F:\\out.txt",true);
            String content = "\r\n/**\n" +
                    "\n * @author Administrator\n" +
                    "\n * @decription\n" +
                    "\n * @Date 2018-02-05 14:33\n" +
                    "\n */";
            writer.write(content);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                writer.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
